package com.wedu.modules.dss.controller;

import com.wedu.common.utils.R;
import com.wedu.modules.dss.service.DssUsageEfficiencyService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/dss/usage")
public class DssUsageEfficiencyController {
    @Autowired
   private DssUsageEfficiencyService dssUsageEfficiencyService;
    @RequestMapping("/list")
    @RequiresPermissions("dss:usage:list")
    public R list(@RequestParam Map<String,Object> params){
        return R.ok().put("page",dssUsageEfficiencyService.queryUsageEfficiency(params));
    }
}
